@mixin fade-motion($className, $keyframeName) {
  @include make-motion($className, $keyframeName, $animation-time-quick);
  .#{$className}-enter-active, .#{$className}-appear {
    animation-timing-function: linear;
    opacity: 0;
  }
  .#{$className}-leave-active {
    animation-timing-function: linear;
  }
}

@include fade-motion(fade, ivuFade);

@keyframes ivuFadeIn {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

@keyframes ivuFadeOut {
  0% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
}
